package com.junchao.peng.service;

import com.junchao.peng.pojo.User;
import com.junchao.peng.utils.JsonResult;

/**
 * @author dell
 */
public interface UserService {
    JsonResult sendVerificationCode(String email);

    JsonResult confirm(String email, String code);

    JsonResult selectUserById(Integer id, String token);

    JsonResult updateUser(User user, String token);
    
    JsonResult insertUser(User user);

    JsonResult deleteUser(Integer userId, String token);

    JsonResult listUser(String token);
}
